package sctu.edu.java.year2016.team06.luoxin.day20160616;

import java.util.Scanner;

/**编写一个应用程序，读取用户输入的3个非0数据，判断并输出这3个值能否构成一个三角形的3条边。
 * Created by Administrator on 2016/6/16.
 */
public class practice {
    public static void main(String[] args) {
        Scanner  s = new Scanner(System.in);
        System.out.println("请输入三个非零数据：");
        int  a =s.nextInt();
        int  b=s.nextInt();
        int  c=s.nextInt();
        if(a+b>c&&a+c>b&&b+c>a&&a-b<c&&a-c<b&&b-c<a){
            System.out.println("the three number can constitute trigon");
        }
        else{
            System.out.println("the three number not can constitute trigon");
        }
    }

}
